# Contributor: qaqland <qaq@qaq.land>
# Maintainer: qaqland <qaq@qaq.land>
pkgname=bats-support
pkgver=0.3.0
pkgrel=0
pkgdesc="Supporting library for Bats test helpers"
url="https://github.com/bats-core/bats-support"
arch="noarch"
license="CC0-1.0"
depends="bash bats-core"
source="$pkgname-$pkgver.tar.gz::https://github.com/bats-core/bats-support/archive/refs/tags/v$pkgver.tar.gz"

check() {
	bats test
}

package() {
	install -Dm644 load.bash "$pkgdir"/usr/lib/bats/bats-support/load.bash
	install -Dm644 src/* -t "$pkgdir"/usr/lib/bats/bats-support/src
}

sha512sums="
417a8054462a44a6f46e375526cc1c920bae54ea76ddec3ff46603fe68bdb5c58f51bfb1c7e066347a3b71ff4d43986fd5157eb55151e0c4b5d189d81282ea14  bats-support-0.3.0.tar.gz
"
